#import "AppDelegate.h"
#import "GeneratedPluginRegistrant.h"
#import <AMapFoundationKit/AMapFoundationKit.h>
#import <AMapLocationKit/AMapLocationKit.h>
#import "AppDelegate+AMap.h"
@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [GeneratedPluginRegistrant registerWithRegistry:self];
  // Override point for customization after application launch.
  //高德定位
  [AMapServices sharedServices].apiKey = XDGaoDeAppKey;
    [self flutterMethodChannelConfig];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

- (void)flutterMethodChannelConfig
{
    FlutterViewController* controller = (FlutterViewController*)self.window.rootViewController;
    [self AMapMethodChannelWithController:controller];
}
@end
